package com.example.clxy.service;

import com.example.clxy.entity.Question;
import com.example.clxy.entity.dto.QuestionDto;
import com.example.clxy.entity.dto.QuestionDto2;
import com.example.clxy.result.PageResult;
import com.example.clxy.result.PageResultForQuestion;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.PageResult.QuestionPageResult;
import com.example.clxy.result.business.QuestionResult;

import java.util.Map;

/**
 * @author Hsieh
 * @title: QuestionService
 * @projectName clxy
 * @description: TODO
 * @date 2020/8/520:26
 */

public interface QuestionService {
    Map<String,Object> addQuestion(Question question);

    WebRestResult deleteQuestion(String questionid);

    WebRestResult updateQuestion(QuestionDto2 questionDto2);

    PageResult<QuestionPageResult> getQuestionList(String content,int page,int pagesize);

    WebRestResult ExperimentbindQuestion(String experimentid,String questionid);

    WebRestResult PlatformbindQuestion(String platformid,String questionid);

    PageResult<QuestionPageResult> getQuestionListbyExperiment(String experimentid,String content, int page,int pagesize);

    PageResult<QuestionPageResult> getQuestionListbyPlatform(String platformid,String content,int page,int pagesize);

    PageResult<QuestionPageResult> getallQuestionListwithExperiment(String content,int page,int pagesize);

    PageResult<QuestionPageResult> getallQuestionListwithPlatform(String content,int page,int pagesize);

    QuestionResult getQuestionbyId(String questionid);

    WebRestResult addQuestionMuti(QuestionDto questionDto);

    WebRestResult updateQuestionMuti(QuestionDto questionDto);

    PageResult<QuestionPageResult> getQuestionApartmently(String platformid, String experimentid, int page, int pagesize);

    WebRestResult isPassSafetyAssessment(String scheduleid,String studentid,String status);

}
